import tool from "../js/tool"

export default {
  //获取secction
  getSessionKey(data, success) {
    tool.ajax({
      url: tool.serviceUrl + '/common/getSessionKey',
      data,
      loading: false,
      type: 'GET',
      success
    })
  },
  //獲取unionId
  getUnionId(data, success) {
    tool.ajax({
      data,
      url: tool.serviceUrl + '/common/getUnionId',
      type: 'GET',
      success
    })
  },
  //wx登录
  wxLogin(data, success) {
    tool.ajax({
      url: tool.serviceUrl + '/login/wxLogin',
      type: 'POST',
      data,
      success
    })
  },
  //获取用户信息
  getUserInfo(data, success) {
    tool.ajax({
      url: tool.serviceUrl + '/personal/getUserInfo',
      type: 'GET',
      data,
      success
    })
  },

};

